<template>
	<view class="initial">
		<image src="@/static/images/loginTitle.png" mode="aspectFit" class="titleText" />

		<view class="goButton">
			<PublicButton type="abrazine" @click="loginStore.toRegistry">注册</PublicButton>
			<PublicButton type="default" @click="loginStore.toLogin">登录</PublicButton>
			<button plain @click="loginStore.toPassword">忘记密码</button>
		</view>
	</view>
</template>

<script lang="ts" setup>
// login仓库
import useLoginStore from '@/stores/login';
const loginStore = useLoginStore();
</script>

<style lang="scss" scoped>
.initial {
	position: relative;
	width: 100%;
	height: 100%;

	image.titleText {
		top: 30%;
		transform: translateY(-50%);
		width: 100%;
		filter: brightness(150%);
	}

	.goButton {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;

		position: absolute;
		bottom: 100rpx;

		width: 100%;

		button:last-child {
			margin-top: 20rpx;
			border: none;
			outline: none;
			color: #fff;
			font-size: 28rpx;
			font-weight: bold;
		}
	}
}
</style>
